package com.wmh.baseservice.merchant.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-10-17
 */
@ApiModel(value="MerchantPlotRent对象", description="商家菜/果地租赁表")
public class MerchantPlotRent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0未生效 1已生效 -1已过期转回")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "原商家id")
    private Long rawMerchantId;

    @ApiModelProperty(value = "申请租借的用户")
    private Long rentUsId;

    @ApiModelProperty(value = "租借后的商家id")
    private Long rentMerchantId;

    @ApiModelProperty(value = "剩余天数")
    private Integer day;

    @ApiModelProperty(value = "区域id")
    private Long regionId;

    @ApiModelProperty(value = "土地id")
    private Long plotId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "租赁套餐id")
    private Long rentMenuId;

    @ApiModelProperty(value = "是否已退押金	0：未退	1：已退")
    private Integer hasDeposit;

    @TableField(exist = false)
    private String nick;
    @TableField(exist = false)
    private String avatar;

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public Long getId() {
        return id;
    }

    public MerchantPlotRent setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public MerchantPlotRent setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public MerchantPlotRent setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public MerchantPlotRent setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public MerchantPlotRent setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public MerchantPlotRent setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getRawMerchantId() {
        return rawMerchantId;
    }

    public MerchantPlotRent setRawMerchantId(Long rawMerchantId) {
        this.rawMerchantId = rawMerchantId;
        return this;
    }
    public Long getRentUsId() {
        return rentUsId;
    }

    public MerchantPlotRent setRentUsId(Long rentUsId) {
        this.rentUsId = rentUsId;
        return this;
    }
    public Long getRentMerchantId() {
        return rentMerchantId;
    }

    public MerchantPlotRent setRentMerchantId(Long rentMerchantId) {
        this.rentMerchantId = rentMerchantId;
        return this;
    }
    public Integer getDay() {
        return day;
    }

    public MerchantPlotRent setDay(Integer day) {
        this.day = day;
        return this;
    }
    public Long getRegionId() {
        return regionId;
    }

    public MerchantPlotRent setRegionId(Long regionId) {
        this.regionId = regionId;
        return this;
    }
    public Long getPlotId() {
        return plotId;
    }

    public MerchantPlotRent setPlotId(Long plotId) {
        this.plotId = plotId;
        return this;
    }
    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public MerchantPlotRent setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
        return this;
    }
    public Long getRentMenuId() {
        return rentMenuId;
    }

    public MerchantPlotRent setRentMenuId(Long rentMenuId) {
        this.rentMenuId = rentMenuId;
        return this;
    }
    public Integer getHasDeposit() {
        return hasDeposit;
    }

    public MerchantPlotRent setHasDeposit(Integer hasDeposit) {
        this.hasDeposit = hasDeposit;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String RAW_MERCHANT_ID = "raw_merchant_id";

    public static final String RENT_US_ID = "rent_us_id";

    public static final String RENT_MERCHANT_ID = "rent_merchant_id";

    public static final String DAY = "day";

    public static final String REGION_ID = "region_id";

    public static final String PLOT_ID = "plot_id";

    public static final String PAY_AMOUNT = "pay_amount";

    public static final String RENT_MENU_ID = "rent_menu_id";

    public static final String HAS_DEPOSIT = "has_deposit";

    @Override
    public String toString() {
        return "MerchantPlotRent{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", rawMerchantId=" + rawMerchantId +
            ", rentUsId=" + rentUsId +
            ", rentMerchantId=" + rentMerchantId +
            ", day=" + day +
            ", regionId=" + regionId +
            ", plotId=" + plotId +
            ", payAmount=" + payAmount +
            ", rentMenuId=" + rentMenuId +
            ", hasDeposit=" + hasDeposit +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            MerchantPlotRent.ID
            ,MerchantPlotRent.STATUS
            ,MerchantPlotRent.REMARK
            ,MerchantPlotRent.VERSION
            ,MerchantPlotRent.CREATE_TIME
            ,MerchantPlotRent.UPDATE_TIME
            ,MerchantPlotRent.RAW_MERCHANT_ID
            ,MerchantPlotRent.RENT_US_ID
            ,MerchantPlotRent.RENT_MERCHANT_ID
            ,MerchantPlotRent.DAY
            ,MerchantPlotRent.REGION_ID
            ,MerchantPlotRent.PLOT_ID
            ,MerchantPlotRent.PAY_AMOUNT
            ,MerchantPlotRent.RENT_MENU_ID
            ,MerchantPlotRent.HAS_DEPOSIT
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}